<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <%- include common %>
</head>

<body>
    <%- include("head",{title:"login",username:""}) %>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-3 col-lg-3 col-sm-3">
                <h2 class="text-danger">登录</h2>
                <form action="/users/login" method="POST">
                    <div class="form-group">
                        <label for="username">用户名</label>
                        <input name="username" value="<%- username %>" type="text" class="form-control"
                            id="username" placeholder="请输入用户名">
                    </div>
                    <div class="form-group">
                        <label for="password">密码</label>
                        <input name="password" type="password" class="form-control" id="password"
                            placeholder="请输入密码">
                    </div>
                    <div class="form-group">
                        <a href="/register" class="link">没有账号,前往注册</a>  
                    </div>
                    <button type="submit" class="btn btn-danger">登录</button>
                    <button type="button" onclick="location.href='/register'" class="btn btn-info">注册</button>
                </form>
            </div>
        </div>
    </div>

    <%- include footer %>
</body>

</html>